<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>签到/签退示例</title>
<script language="javascript">
	//签到客户端接口
	function reportOn() {
		window.utils.ReportOn();
	}
	//签退客户端接口
	function reportOff() {
		window.utils.ReportOff();
	}
	//签到回调
	function reportOnCallback(address,lat,lon) { 
		alert("类型：签到"+"\n"+"地点:"+address+"\n"+"纬度:"+lat+"\n"+"经度"+lon); 
		document.getElementById("selected").value = "签到地点："+address;
	}
	//签退回调
	function reportOffCallback(address,lat,lon) { 
		alert("类型：签退"+"\n"+"地点:"+address+"\n"+"纬度:"+lat+"\n"+"经度"+lon); 
		document.getElementById("selected").value = "签退地点:"+address;
	} 
</script>
</head>
<body>
	<h1 align="center">签到/签退测试页面</h1>
	<br />
	<br />
	<br />
	<input type="button" value="签到" onclick="reportOn()"
		style="background: btn_nor.png; border-style: none; width: 124px; height: 35px; background-repeat: no-repeat;" />

	<br />
	<br />
	<input type="button" onclick='reportOff()' value="签退"
		style="background: btn_nor.png; border-style: none; width: 124px; height: 35px; background-repeat: no-repeat;" />
	<br />
	<br />
	<input type="text" id="selected" style=" width: 100%; height: 45px;" value="" />
</body>
</html>